package com.zp.business.mapper.patient;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zp.business.entity.patient.ClinicMaster;
import com.zp.business.entity.patient.bo.ClinicMasterBo;
import com.zp.business.entity.patient.vo.ClinicMasterVo;
import com.zp.common.myBatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 门诊就诊记录Mapper接口
 *
 * @author zhang peng
 * @ date 2023-12-23
 */
@Repository
public interface ClinicMasterMapper extends BaseMapperPlus<ClinicMasterMapper, ClinicMaster, ClinicMasterVo> {

    List<ClinicMasterVo> getNumGroupClinicType (ClinicMasterBo bo);

    /**
     * 修改ClinicType
     *
     * @param bo
     */
    int updateClinicType (ClinicMasterBo bo);

    /**
     * 修改接诊医生 doctor_id
     *
     * @param bo
     */
    int updateDoctorId (ClinicMasterBo bo);

    /**
     * 获取患者信息列表（关联clinicOrder存在代收费）
     *
     * @param page
     * @param bo
     * @return
     */
    Page<ClinicMasterVo> selectVoPageInClinicOrder (@Param("page") Page<ClinicMasterBo> page, @Param("bo") ClinicMasterBo bo);
}
